package com.miplus.ccrm.core.api.fastgpt.model;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 阻塞式调用响应.
 */
@Data
public class BlockResponse implements Serializable {
    private static final long serialVersionUID = 1L;
    private String id;
    private String model;
    private Usage usage;
    private List<Choice> choices;

    @Data
    public static class Usage implements Serializable {
        private Integer prompt_tokens;
        private Integer completion_tokens;
        private Integer total_tokens;
    }

    @Data
    public static class Choice implements Serializable {
        private Message message;
        private String finish_reason;
        private Integer index;
    }

    @Data
    public static class Message implements Serializable {
        private String role;
        private String content;
    }
}